package org.apache.hadoop.hive.ql.hooks;

import org.apache.hadoop.hive.ql.parse.ParseException;
import org.apache.hadoop.hive.ql.parse.SemanticException;

/**
 * @author cjy
 * @create 2020-08-31
 */
public class ExampleTest {
    public static void main(String[] args) throws SemanticException, ParseException {
        String query = "insert into table aa select * from bb union all select * from cc";
        String query1 = "create table if not exists aaa(id string, name string)";
        String query2 = "CREATE table valid_records AS SELECT * FROM records2 WHERE temperature !=9999";
        String query3 = "delete table valid_records";

        HiveParse hiveParse = new HiveParse();
        hiveParse.getLineageInfo(query1);
    }
}
